﻿@using HrEFCore
@model List<ER>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script src="~/aa/vue/dist/vue.js"></script>
	<script src="~/aa/element-ui/lib/index.js"></script>
	<link href="~/aa/element-ui/lib/theme-chalk/index.css" rel="stylesheet" />
	<script src="~/aa/axios/dist/axios.js"></script>
	<link rel="stylesheet" href="~/css/table.css" type="text/css"></link>
	<script type="text/javascript" src="~/javascript/comm/comm.js"></script>
	<script type="text/javascript" src="~/javascript/jquery-1.7.2.js"></script>
	<style type="text/css">
		body {
			background: rgb(253,244,227);
		}

		.TD_STYLE1 {
			background: #E6DDCE;
			/* color:white; */
		}

		.TD_STYLE2 {
			background: rgb(253,244,227);
		}

		.INPUT_STYLE2 {
			background: rgb(253,244,227);
		}
	</style>
</head>
<body>
	<form action="" method="post" id="hfselectByName">
		<table style="width:100%;margin-top:10px;height:30px;background-color:rgb(253,244,227)">
			<tr>
				<td>
					<font color="black">
						您正在做的业务是：人力资源--招聘管理--简历管理--有效简历筛选--有效简历查询

					</font>
				</td>
			</tr>
			<tr>
				<td>
					当前等待复核的人力资源档案总数： {{rows}} 例
				</td>
			</tr>
			<tr>
				<td align="right">
					<input type="button" value="返回" class="BUTTON_STYLE1"
						   onclick="history.back();">
				</td>
			</tr>
		</table>
		<el-table :data="list"
				  style="width: 100%">
			<el-table-column prop="resId"
							 label="编号">
			</el-table-column>
			<el-table-column prop="humanName"
							 label="姓名">
			</el-table-column>
			<el-table-column prop="humanSex"
							 label="性别">
			</el-table-column>
			<el-table-column prop="humanMajorKindName"
							 label="职位分类">
			</el-table-column>
			<el-table-column prop="hunmaMajorName"
							 label="职位名称">
			</el-table-column>
			<el-table-column prop="checkStatus"
							 label="复核状态" v-if="false">

			</el-table-column>
			<el-table-column label="操作">
				<template slot-scope="scope">
					<a :href="'@Url.Action("YXSXCX","ER")?id='+scope.row.resId" target="mainFrame" style="color:black">筛选</a>

				</template>
			</el-table-column>

		</el-table>
		<el-pagination v-on:size-change="handleSizeChange"
					   v-on:current-change="handleCurrentChange"
					   :currentpage="currentPage"
					   :page-sizes="[2, 3, 4, 5]"
					   :page-size="pageSize"
					   layout="total, sizes, prev, pager, next, jumper"
					   :total="rows">
		</el-pagination>
		<th colspan="7" class="pager">
		</th>
	</form>
	<script type="text/javascript">
		var vm = new Vue({
			el: "#hfselectByName",
			data: {
				list: [],
				currentPage: 1,
				pageSize: 4,
				rows: 1,
			},
			methods: {
				fill: function () {
					axios.get('/ER/SelectFYByName2', {
						params: {
							currentPage: this.currentPage,
							pageSize: this.pageSize
						}
					}).then(res => {
						this.list = res.data.list;
						this.rows = res.data.rows;
					}).catch(err => {
						console.log(err);
					})
				},
				handleSizeChange: function (size) {
					this.pageSize = size;
					this.fill();
				},
				handleCurrentChange: function (cpage) {
					this.currentPage = cpage;
					this.fill();
				},

			},
			mounted: function () {
				this.fill();
			}
		})
	</script>
</body>
</html>